import request from '@/utils/request'

export function listByQueryModel(query) {
  return request({
    url: '/swla2/terminalsFreeze/listByQueryModel',
    method: 'get',
    params: query
  })
}

// 查询大日冻结数据列表
export function listTerminalsFreeze(query) {
  return request({
    url: '/swla2/terminalsFreeze/list',
    method: 'get',
    params: query
  })
}

// 查询大日冻结数据详细
export function getTerminalsFreeze(tenantId) {
  return request({
    url: '/swla2/terminalsFreeze/' + tenantId,
    method: 'get'
  })
}

// 新增大日冻结数据
export function addTerminalsFreeze(data) {
  return request({
    url: '/swla2/terminalsFreeze',
    method: 'post',
    data: data
  })
}

// 修改大日冻结数据
export function updateTerminalsFreeze(data) {
  return request({
    url: '/swla2/terminalsFreeze',
    method: 'put',
    data: data
  })
}

// 删除大日冻结数据
export function delTerminalsFreeze(tenantId) {
  return request({
    url: '/swla2/terminalsFreeze/' + tenantId,
    method: 'delete'
  })
}
